<?php

namespace IDock\Insurance\ZYIC\Response;

use IDock\Http\Response;
use IDock\IDock\IDockEnums;
use IDock\Insurance\ZYIC\ZYICEnums;
use IDock\Insurance\ZYIC\Response\AllZYICResponse;
use IDock\Printer\preInquiryPrinter;
use IDock\Printer\VehicleModelPrinter;
use IDock\Printer\VehiclePrinter;

class SaveOrderResponse extends AllZYICResponse
{

    /**
     * @var preInquiryPrinter $printer
     */
    public $printer = preInquiryPrinter::class;

    public function printerInit(): Response
    {
        $body = $this->getBody();
        $data = $body['content'] ?? [];
        $proposalNoBI = $data['proposalNoBI'] ?? '';
        $proposalNoCI = $data['proposalNoCI'] ?? '';

        $this->printer->argc['proposalNoBI'] = $proposalNoBI;
        $this->printer->argc['proposalNoCI'] = $proposalNoCI;
        return $this;
    }
}
